﻿<phone:PhoneApplicationPage 
    x:Class="YiDingCanWp7.LoginPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="False">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot">
        <Grid.Background>
            <ImageBrush ImageSource="PanoramaBackground.png" Stretch="UniformToFill" />
        </Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <!--<TextBlock x:Name="ApplicationTitle" Text="{StaticResource ApplicationName}" Style="{StaticResource PhoneTextNormalStyle}"/>-->
            <TextBlock x:Name="PageTitle" Text="登陆" Margin="9,-7,0,0" Style="{StaticResource CustomPhoneTextTitleStyle}"   Height="60" Width="467" FontSize="50" />
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Margin="9,94,15,4" Grid.RowSpan="2">
            <TextBlock Height="30" Foreground="#e67b08" HorizontalAlignment="Left" Margin="46,109,0,0" Name="textBlock1" Text="用户名：" VerticalAlignment="Top" />
            <TextBox Height="81" Foreground="#e67b08" Background="White" HorizontalAlignment="Left" Margin="122,79,0,0" Name="textBox_LoginName" Text="" VerticalAlignment="Top" Width="303" />
            <TextBlock Foreground="#e67b08" Height="30" HorizontalAlignment="Left" Margin="52,217,0,0" Name="textBlock2" Text="密码：" VerticalAlignment="Top" />
            <PasswordBox Foreground="#e67b08" Height="81" Background="White" HorizontalAlignment="Left" Margin="122,200,0,0" Name="textBox_Password" VerticalAlignment="Top" Width="303" />
            <Button Content="登 录" Background="#e67b08" Foreground="White" Height="95" HorizontalAlignment="Left" Margin="52,292,0,0" Name="button_Submit" VerticalAlignment="Top" Width="373" Click="button_Submit_Click" />
            <HyperlinkButton Foreground="Gray" Content="忘记密码" Height="30" HorizontalAlignment="Left" Margin="12,436,0,0" Name="hyperlinkButton1" VerticalAlignment="Top" Width="200" />
            <HyperlinkButton Foreground="Gray" Content="注册" Height="30" HorizontalAlignment="Right" Margin="0,436,44,0" Name="hyperlinkButton2" VerticalAlignment="Top" Width="200" Click="hyperlinkButton2_Click" />
        </Grid>
    </Grid>
</phone:PhoneApplicationPage>
